package com.DHH.Service.Base;

import com.DHH.Entity.Base.BaseRole;
import com.DHH.Entity.Base.BaseUser;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface IBaseUserService {
   /**
    * 插入实体类BaseUser
    *
    * @param
    * @return
    */
   public BaseUser insertBaseUser(BaseUser baseUser);
   /**更新实体类BaseUser
    * @param
    * @return
    */
   public BaseUser updateBaseUser(BaseUser baseUser);
   /**删除实体类BaseUser
    * @param
    * @return
    */
   public BaseUser deleteBaseUser(BaseUser baseUser);
   /**
    * 保存或更新操作，返回值为主表
    */
   public BaseUser saveOrUpdateBaseUser(BaseUser baseUser,List<BaseRole> roleList);

   public BaseUser insertBaseUserAdmin(BaseUser user, List<BaseRole> roleList);

}
